package STUDENT.TRANDAODAIVI.OOPs.BaitapOOPEX2;
class Stock{
	String stocksymbol;
	String stockname;
	double previousClosingPrice;
	double currentPrice;
	public double changePercent(Stock object){
		return currentPrice/previousClosingPrice;
	}
	
	
}
public class BT5 {
public static void main(String[] args) {
	Stock obj=new Stock();
	obj.stocksymbol="SUNW";
	obj.stockname="Sun Microsystems Inc";
	obj.previousClosingPrice=100;
	obj.currentPrice=90;
	System.out.println("Ti le thay doi: "+obj.changePercent(obj));
}
}
